From: Julien Grall Date: Thu, 15 Sep 2016 11:28:31 +0000 (+0100) Subject: xen/arm: p2m: Make p2m_{valid,table,mapping} helpers inline X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~327 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:/?a=commitdiff_plain;h=c781d669117e7f012c2dea13ee0c11167e08aac2;p=xen.git xen/arm: p2m: Make p2m_{valid,table,mapping} helpers inline Those helpers are very small and often used. Let know the compiler they can be inlined. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini Tested-by: Tamas K Lengyel --- diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index d544193b5c..c5695efb88 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -39,7 +39,7 @@ static const uint8_t level_shifts[] = static const uint8_t level_orders[] = { ZEROETH_ORDER, FIRST_ORDER, SECOND_ORDER, THIRD_ORDER }; -static bool_t p2m_valid(lpae_t pte) +static inline bool_t p2m_valid(lpae_t pte) { return pte.p2m.valid; } @@ -48,11 +48,11 @@ static bool_t p2m_valid(lpae_t pte) * the table bit and therefore these would return the opposite to what * you would expect. */ -static bool_t p2m_table(lpae_t pte) +static inline bool_t p2m_table(lpae_t pte) { return p2m_valid(pte) && pte.p2m.table; } -static bool_t p2m_mapping(lpae_t pte) +static inline bool_t p2m_mapping(lpae_t pte) { return p2m_valid(pte) && !pte.p2m.table; }